import QtQuick
import QtQuick.Controls
import QtQuick.Layouts

Rectangle {
    Layout.fillWidth: true
    Layout.fillHeight: true

    TextArea {
        id: styledTextArea
        anchors.fill: parent
        anchors.margins: 10
        text: "自定义字体和颜色的文本区域"

        font {
            family: "Courier New"
            pixelSize: 14
            bold: true
            italic: false
        }

        color: "blue"
        selectionColor: "#1296FF"
        selectedTextColor: "white"
        placeholderTextColor: "#aaa"
    }
}
